package service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import domain.Customer;
import mapper.CustomerMapper;
import service.CustomerService;

@Service
public class CustomerServiceImpl implements CustomerService{
    @Autowired
    private CustomerMapper mapper;

    @Override
    public Customer getById(Long id){
        return mapper.selectByPrimaryKey(id);
    }
}